<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      //作用域攀升
      //全局空间 em  color font-size
      //顶部空间 1
      let a = 9
      function show() {
        //函数空间
        //2级空间
        let a = 6
        {
          //3级空间
          console.log(a)
        }
      }
      show()
    </script>
  </body>
</html>
